<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:ace="http://www.icefaces.org/icefaces/components"
   xmlns:icecore="http://www.icefaces.org/icefaces/core">
   <h:body> 
      <ui:composition template="/WEB-INF/templates/adminuser/template.xhtml">
         <ui:define name="content">
              <h:form id="form-devices">
              	<icecore:singleSubmit />
                  <ace:dataTable id="dev-list"
                                  value="#{deviceAdminListBean.devices}"
                                  var="dev">
                      <ace:column id="name-col" headerText="#{msgs['deviceAdmin.devname']}">
                           <h:outputText id="name-row" value="#{dev.name}"/>
                      </ace:column>
                      <ace:column id="type-col" headerText="#{msgs['deviceAdmin.devtype']}">
                           <h:outputText id="type-row" value="#{dev.typename}"/>
                      </ace:column>
                      <ace:column id="button-col">
                
                           <h:commandButton  id="editBttn" value="#{msgs['deviceAdmin.edit']}" action="devicedata"
	                                         actionListener="#{dev.edit}" disabled="#{sysOffOn.active}"/>
	                       <h:commandButton  id="deleteBttn" value="#{msgs['deviceAdmin.delete']}" 
	                                         actionListener="#{dev.delete}" disabled="#{sysOffOn.active}"/>
                      </ace:column>  
                  </ace:dataTable>    
                  <h:commandButton  id="newBttn" value="#{msgs['deviceAdmin.new']}" action="devicedata"
	                                         actionListener="#{deviceAdminListBean.newDevice}" disabled="#{sysOffOn.active}"/>            
              </h:form>
         </ui:define>	
      </ui:composition> 
   </h:body> 
</html>	